home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / clonecd / September 93.img / Archives / Utilities / Security - care / Protect / Tonto / settext.c < prev    next >
Text File  |  1991-11-26  |  689b  |  44 lines

  1. /********************
  2.  
  3. SetText routines
  4.  
  5. Copyright 1987 Greg Coleman
  6. Black Sun Technology
  7. These sources may be freely distributed provided this notice remains intact.
  8.  
  9. ********************/
  10.  
  11. #include <Controls.h>
  12. #include <Dialogs.h>
  13. #include <Quickdraw.h>
  14. #include <Types.h>
  15. #include "Tonto.h"
  16.  
  17. void
  18. GetText(dialog,num,string)
  19. DialogPtr     dialog;
  20. int         num;
  21. StringPtr    string;
  22. {
  23.     Handle        line;
  24.     short        type;
  25.     Rect        box;
  26.     
  27.     GetDItem(dialog, num, &type, &line, &box);
  28.     GetIText(line, string);
  29. }
  30.  
  31.  
  32. void
  33. SetText(dialog,num,string)
  34. DialogPtr     dialog;
  35. int         num;
  36. StringPtr    string;
  37. {
  38.     Handle        line;
  39.     Rect        box;
  40.     short        type;
  41.     
  42.     GetDItem(dialog, num, &type, &line, &box);
  43.     SetIText(line, string);
  44. }